<%-- 
    Document   : project
    Created on : 11.5.2009, 22:32:40
    Author     : Ediczech
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<f:view>
    <%@include file="view/header.jsp" %>

    <%-- Content --%>

    <h2><h:outputText value="#{msg.projectBugs_title} #{ProjectBugsBean.project.name}"/></h2>

    <h:panelGroup rendered="#{ProjectBugsBean.isAnyBug}">
        <rich:dataTable var="bug" value="#{ProjectBugsBean.bugs}">

            <f:facet name="header">
                <rich:columnGroup>
                    <rich:column><h:outputText value="#{msg.bug_id}" /></rich:column>
                    <rich:column><h:outputText value="#{msg.bug_title}" /></rich:column>
                    <rich:column><h:outputText value="#{msg.bug_project}" /></rich:column>
                    <rich:column><h:outputText value="#{msg.bug_importance}" /></rich:column>
                    <rich:column><h:outputText value="#{msg.bug_status}" /></rich:column>
                </rich:columnGroup>
            </f:facet>

            <rich:column><h:outputText value="#{bug.id}" /></rich:column>
            <rich:column>
                <h:outputLink value="/bugman-war/faces/bugDetail.jsp?id=#{bug.id}">
                    <h:outputText value="#{bug.title}" />
                </h:outputLink>
            </rich:column>
            <rich:column><h:outputText value="#{bug.project.name}" /></rich:column>
            <rich:column><h:outputText value="#{bug.importance.name}" /></rich:column>
            <rich:column><h:outputText value="#{bug.status.name}" /></rich:column>
        </rich:dataTable>
    </h:panelGroup>

    <h:panelGroup rendered="#{!ProjectBugsBean.isAnyBug}">
        <h3><h:outputText value="#{msg.projectBugs_noBug_title}"/></h3>
        <h:outputText value="#{msg.projectBugs_noBug_message}"/>
    </h:panelGroup>

    <%-- Content --%>

    <%@include file="view/footer.jsp" %>
</f:view>